package com.example.notice_management_p1.controller;
import com.pojo.util.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;


public class BaseController {
    @ExceptionHandler(RuntimeException.class)
    public Result<Void> handleException(Throwable e){
        Result<Void>result=Result.failure();
        result.setStatus(401);
        return result;

    }
}
